﻿@model Clirelmgt.Models.ModuleModel

@{
    ViewBag.Title = "Card";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}

<div class="dashboard-wrapper">
    <div class="left-sidebar">
        <div class="row-fluid">
            <div class="span12">
                <div class="widget">
                    <div class="widget-header">
                        <div class="title">
                            Update the module info
                        </div>
                    </div>
                    <div class="widget-body">
                        <form class="form-horizontal no-margin" method="post">
                            <input class="span3" type="hidden" id="ModuleID" name="ModuleID" value="@Model.ModuleID" />
                            <div class="control-group">
                                <label class="control-label" for="name">
                                    Name
                                </label>
                                <div class="controls controls-row">
                                    <input class="span3" type="text" id="Name" name="Name" data-val="true" data-val-required="Required!" value="@Model.Name" />
                                    <span class="field-validation-valid" data-valmsg-for="Name" data-valmsg-replace="true"></span>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label" for="name">
                                    Menu Name
                                </label>
                                <div class="controls controls-row">
                                    <input class="span3" type="text" id="MenuName" name="MenuName" data-val="true" data-val-required="Required!" value="@Model.MenuName" />

                                    <span class="field-validation-valid" data-valmsg-for="MenuName" data-valmsg-replace="true"></span>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label" for="name">
                                    Description
                                </label>
                                <div class="controls controls-row"> 
                                    <textarea id="Description" rows="4" name="Description" data-val="false">@Model.Description</textarea>
                                    <span class="field-validation-valid" data-valmsg-for="Description" data-valmsg-replace="true"></span>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label" for="name">
                                    Icon
                                </label>
                                <div class="controls controls-row">
                                    <input class="span3" type="text" id="IconImage" name="IconImage" value="@Model.IconImage"/>
                                </div>
                            </div>
                            <div class="form-actions no-margin">
                                <button type="submit" class="btn btn-info pull-right">
                                    Update
                                </button>
                                <div class="clearfix">
                                </div>
                            </div>

                        </form>

                    </div>
                </div>
            </div>

        </div>
    </div>
</div>
